package cn.engage.org.controller;

import cn.engage.basic.util.PageList;
import cn.engage.org.domain.MyLog;
import cn.engage.org.query.MyLogQuery;
import cn.engage.org.service.MyLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mylog")
public class MyLogController {
    @Autowired
    private MyLogService myLogService;
    // 分页查询
    @PostMapping
    public PageList<MyLog> queryByPage(@RequestBody MyLogQuery query){
        return myLogService.queryByPage(query);
    }
}
